{template 'content', 'header'}
<script type="text/javascript">
<!--
	var charset = '{CHARSET}';
	var uploadurl = '{php echo pc_base::load_config('system','upload_url')}';
//-->
</script>
<script type="text/javascript" src="{JS_PATH}member_common.js"></script>
<script type="text/javascript" src="{JS_PATH}formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}formvalidatorregex.js" charset="UTF-8"></script>
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<script language="javascript" type="text/javascript" src="{JS_PATH}content_addtop.js"></script>
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<div class="content min_height700">
	<div class="published_travels">
		<h1>发布新游记</h1>
		<div class="inner">
			<form method="post" action="" id="myform" name="myform">
				<div class="biaoti"><span class="title">标题：</span><input type="text" name="info[title]" id="title"  onBlur="$.post('api.php?op=get_keywords&number=3&sid='+Math.random()*5, {data:$('#title').val()}, function(data){if(data && $('#keywords').val()=='') $('#keywords').val(data); })"  class="box" /></div>
				<div class="biaoti"><span class="title">内容：</span><div class="titleright"><?php echo $forminfos['content']['form'];?><?php echo $forminfos['content']['tips'];?></div></div>
				<div class="biaoti"><input type="submit" value="发表游记" class="submit" name="dosubmit" /><input type="reset" value="取消" class="reset" /></div>
			<input name="forward" type="hidden" value="{HTTP_REFERER}">
			<input name="id" type="hidden" value="{$id}">
			<input name="info[catid]" type="hidden" value="{$catid}">
			<input type='hidden' name='info[keywords]' id='keywords' value='' class='input-text'>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript"> 
<!--
//只能放到最下面
$(function(){
	$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, 	function(){$(obj).focus();
	boxid = $(obj).attr('id');
	if($('#'+boxid).attr('boxid')!=undefined) {
		check_content(boxid);
	}
	})}});
	{$formValidator}
})
//-->
</script>
{template 'content', 'footer'}